﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Code.Models;

namespace Code.BLL
{
    /// <summary>
    /// 用户基本信息
    /// </summary>
    [Serializable]
    public class User_Comm
    {
        public Guid Uid { get; set; }
        public Guid? CommandID { get; set; }
        public string Commmands { get; set; }
        public string LoginName { get; set; }
        public string RName { get; set; }
        public DateTime RegistTime { get; set; }
        public short UserTye { get; set; }
        /// <summary>
        /// 当前用户的总金额
        /// </summary>
        public double Money { get; set; }
    }
    [Serializable]
    public class AllChild_Mod
    {
        public Guid Uid { get; set; }
        /// <summary>
        /// 下级代理名称
        /// </summary>
        public string ChildName { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime RegistTime { get; set; }
        /// <summary>
        /// 账户余额
        /// </summary>
        public double Balance { get; set; }
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 该代理的下级代理个数
        /// </summary>
        public int ChildsCount { get; set; }
        /// <summary>
        /// 用户在线状态
        /// </summary>
        public UserOnlineState OnlineState { get; set; }
        /// <summary>
        /// 用户状态
        /// </summary>
        public UserState State { get; set; }
        /// <summary>
        /// 用户类型
        /// </summary>
        public short Type { get; set; }
    }
    [Serializable]
    public class AllParent_Mod
    {
        /// <summary>
        /// 编号
        /// </summary>
        public Guid Uid { get; set; }
        /// <summary>
        /// 代理名称
        /// </summary>
        public string LoginName { get; set; }
        /// <summary>
        /// 上级编号
        /// </summary>
        public Guid? CommandID { get; set; }
        /// <summary>
        /// 用户类型
        /// </summary>
        public short UserType { get; set; }
        public string Commands { get; set; }
    }

    [Serializable]
    public class TackMoneys_Mod
    {
        public long ID { get; set; }
        /// <summary>
        /// 当前用户
        /// </summary>
        public User_Comm User { get; set; }
        /// <summary>
        /// 提款金额
        /// </summary>
        public decimal Money { get; set; }

        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime? DoTime { get; set; }

        /// <summary>
        /// 处理状态
        /// </summary>
        public short State { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 收款方式
        /// </summary>
        public BankType Type { get; set; }
        /// <summary>
        /// 收款账号
        /// </summary>
        public string Account { get; set; }
    }

    [Serializable]
    public class Issue_Mod
    {
        /// <summary>
        /// 期号
        /// </summary>
        public string Number { get; set; }
        /// <summary>
        /// 彩种编号
        /// </summary>
        public int LotteryID { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
    }

    [Serializable]
    public partial class Scheme_Mod
    {
        public Guid SchemeID { get; set; }
        /// <summary>
        /// 当前彩种
        /// </summary>
        public string LotteryName { get; set; }
        /// <summary>
        /// 期号
        /// </summary>
        public string IssueNumber { get; set; }
        /// <summary>
        /// 倍数
        /// </summary>
        public int SchemeMultiple { get; set; }
        /// <summary>
        /// 份数
        /// </summary>
        public int SchemeShare { get; set; }
        /// <summary>
        /// 注数
        /// </summary>
        public int SchemeCount { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public double SchemeMoney { get; set; }
        /// <summary>
        /// 方案奖金
        /// </summary>
        public double? SchemeWinMoney { get; set; }
        /// <summary>
        /// 用户奖金
        /// </summary>
        public double? UserWinMoney { get; set; }
        /// <summary>
        /// 开奖号码
        /// </summary>
        public string SchemeOpenCode { get; set; }
        /// <summary>
        /// 奖金模式
        /// </summary>
        public string WinModelName { get; set; }
        /// <summary>
        /// 元角模式
        /// </summary>
        public string ConsumptionRatioName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public short SchemeState { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 是否是追号
        /// </summary>
        public bool IsChaseTask { get; set; }

        public bool IsEnd { get; set; }
    }

    [Serializable]
    public class SchemeDetail_Mod
    {
        public Guid DetailID { get; set; }
        /// <summary>
        /// 当前彩种
        /// </summary>
        public int Lottery { get; set; }
        /// <summary>
        /// 当前玩法
        /// </summary>
        public int PlayType { get; set; }
        /// <summary>
        /// 号码
        /// </summary>
        public string DetailNumber { get; set; }
        /// <summary>
        /// 注数
        /// </summary>
        public int DetailCount { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public double DetailMoney { get; set; }
        /// <summary>
        /// 中奖金额
        /// </summary>
        public double? DetailWinMoney { get; set; }
        /// <summary>
        /// 开奖号码
        /// </summary>
        public string SchemeOpenCode { get; set; }
        /// <summary>
        /// 中奖号码
        /// </summary>
        public string DetailWinNumber { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string DetailRemark { get; set; }

        /// <summary>
        /// 返点加奖
        /// </summary>
        public double? BackMoneyToWinMoney { get; set; }
        /// <summary>
        /// 返点加奖 加奖金额
        /// </summary>
        public double? BackMoneyToWinMoneyToWin { get; set; }
        /// <summary>
        /// 原始奖金
        /// </summary>
        public double? OriginalWinMoney { get; set; }
    }
    [Serializable]
    public class ChaseDetail_Mod
    {
        public long ID { get; set; }
        /// <summary>
        /// 追号详情ID
        /// </summary>
        public Guid ChaseTaskID { get; set; }
        /// <summary>
        /// 方案ID
        /// </summary>
        public Guid? SchemeID { get; set; }
        /// <summary>
        /// 期号名称
        /// </summary>
        public string IssueNumber { get; set; }
        /// <summary>
        /// 倍数
        /// </summary>
        public int Multiple { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public double Money { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public short State { get; set; }
        /// <summary>
        /// 号码
        /// </summary>
        public string ChoseNumber { get; set; }
        /// <summary>
        /// 开奖号码
        /// </summary>
        public string OpenCode { get; set; }
    }



    [Serializable]
    public class SearchIssue_Mod
    {
        /// <summary>
        /// 格式化之后的期号
        /// </summary>
        public string FomartNumber { get; set; }
        /// <summary>
        /// 彩种ID
        /// </summary>
        public int? LotteryID { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public short? State { get; set; }
    }


}
